System.SerialPortCount Property
Read-Only
Syntax
SerialPortCount as Integer
Number of serial ports available.